#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int i,x,y;
	while (scanf("%d", &i) != EOF)
	{
		for (x = 0; x < i; x++)
		{
			for (y = 0; y < i; y++)
			{
				if (x == y || x + y == i - 1)
				{
					printf("*");
				}
				else
				{
					printf(" ");
				}
			}
			printf("\n");
		}
	}
	return 0;
}